using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using BONSAI.Common;
using BONSAI.Common.DTO;
using BONSAI.DAL;

namespace BONSAI.BLL
{
	public class PhotosBO
	{
		public PhotosDTO GetByID(string id)
		{
			return (new PhotosDAO()).GetByID(id);
		}

		public IList<PhotosDTO> GetAll()
		{
			return (new PhotosDAO()).GetAll();
		}

		public string Insert(PhotosDTO photos)
		{
			return (new PhotosDAO()).Insert(photos);
		}

		public void UpdateByID(PhotosDTO photos)
		{
			(new PhotosDAO()).UpdateByID(photos);
		}

		public void DeleteByID(string id)
		{
			(new PhotosDAO()).DeleteByID(id);
		}
        public IList<PhotosDTO> GetByProductId(string productId)
        {
            return (new PhotosDAO()).GetByProductId(productId);
        }
	}
}

